<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:if="${article}==null">Java开源博客</title>
    <meta name="keywords" th:if="${article}==null" content="Java开源博客,Java教程,Java基础教程,Java入门教程" />
    <meta name="description" th:if="${article}==null" content="Java开源博客" />
    <title th:if="${article}!=null" th:text="${article.title}"></title>
    <meta name="keywords" th:if="${article}!=null" th:content="${article.keywords}" />
    <meta name="description" th:if="${article}!=null" th:content="${article.title}" />
    <div th:replace="public/header :: header-css"/>
</head>
<body class="home-template">
<div th:replace="public/header :: header"/>

<!-- start site's main content area -->
<section class="content-wrap">
    <div class="container">
        <div class="row">

            <div th:include="${mainPage}::${mainPageKey}"></div>

            <aside class="col-md-4 sidebar">
                <!-- start widget -->
                <!-- end widget -->

                <!-- start tag cloud widget -->
                <!--<div class="widget">-->
                    <!--<h4 class="title">社区</h4>-->
                    <!--<div class="content community">-->
                        <!--<p>QQ群：123456789</p>-->
                        <!--<p><a href="http://wenda.ghostchina.com/" title="Ghost中文网问答社区" target="_blank"-->
                              <!--onclick="_hmt.push(['_trackEvent', 'big-button', 'click', '问答社区'])"><i-->
                                <!--class="fa fa-comments"></i> 问答社区</a></p>-->
                        <!--<p><a href="http://weibo.com/ghostchinacom" title="Ghost中文网官方微博" target="_blank"-->
                              <!--onclick="_hmt.push(['_trackEvent', 'big-button', 'click', '官方微博'])"><i-->
                                <!--class="fa fa-weibo"></i> 官方微博</a></p>-->
                    <!--</div>-->
                <!--</div>-->
                <!-- end tag cloud widget -->

                <!-- start widget -->
                <!--<div class="widget">-->
                    <!--<h4 class="title">下载 Java开源博客</h4>-->
                    <!--<div class="content download">-->
                        <!--<a href="/download/" class="btn btn-default btn-block"-->
                           <!--onclick="_hmt.push(['_trackEvent', 'big-button', 'click', '下载Ghost'])">Ghost 中文版（0.6.0）</a>-->
                    <!--</div>-->
                <!--</div>-->
                <!-- end widget -->

                <!-- start tag cloud widget -->
                <div class="widget">
                    <h4 class="title">标签云</h4>
                    <div class="content tag-cloud">
                        <a th:each="tags : ${application.tagsList}" th:href="'/link/'+${tags.url}" th:text="${tags.name}">标签名</a>
                    </div>
                </div>
                <!-- end tag cloud widget -->

                <!-- start widget -->
                <div class="widget">
                    <h4 class="title">友链</h4>
                    <div class="content">
                        <p><a href="http://www.baidu.com" title="百度" target="_blank"
                              onclick="_hmt.push(['_trackEvent', 'big-button', 'click', '百度'])"><i
                                class="fa fa-paper-plane"></i> 百度</a></p>
                        <p><a href="http://www.qq.com" title="腾讯" target="_blank"
                              onclick="_hmt.push(['_trackEvent', 'big-button', 'click', '腾讯'])"><i
                                class="fa fa-paper-plane"></i> 腾讯</a></p>
                    </div>
                </div>
                <!-- end widget -->

                <!-- start widget -->
                <!-- end widget -->
            </aside>
        </div>
    </div>
</section>
<div th:replace="public/footer :: footer"/>
</body>
</html>